package com.woniu.repaircenter.service.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.woniu.repaircenter.models.dto.RepairNoticeDTO;
import com.woniu.repaircenter.models.form.AddRepairNoticeForm;
import com.woniu.repaircenter.models.form.SelectRepairNoticeForm;
import com.woniu.repaircenter.models.form.UpdateRepairNoticeForm;
import com.woniu.repaircenter.models.param.AddRepairNoticeParam;
import com.woniu.repaircenter.models.param.SelectRepairNoticeParam;
import com.woniu.repaircenter.models.param.UpdateRepairNoticeParam;
import com.woniu.repaircenter.service.model.RepairNotice;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 维修公告表 服务类
 * </p>
 *
 * @author 吕雨泽
 * @since 2024年12月06日
 */
public interface RepairNoticeService extends IService<RepairNotice> {

    Integer insertRepairNotice(AddRepairNoticeParam addRepairNoticeParam) throws Exception;

    PageInfo<RepairNoticeDTO> listRepairNotice(SelectRepairNoticeParam selectRepairNoticeParam)throws Exception;

    Integer updateRepairNotice(UpdateRepairNoticeParam updateRepairNoticeParam, String userName) throws Exception;

    RepairNoticeDTO selectRepairNotice(Long noticeId)throws Exception;

}
